const intl = {
  get: (obj) => {
    let id = obj.id.split('.').pop();
    id = id.replace(id[0], id[0].toLocaleLowerCase());
    return {
      id,
      defaultMessage: obj.defaultMessage,
    };
  },
};

const docs = [
  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.FileWhitelistRules',
      defaultMessage: '文件白名单规则',
    }),

    link: 'https://help.aliyun.com/document_detail/206901.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.AccessTokenGenerated',
      defaultMessage: 'Access Token 生成',
    }),

    link: 'https://help.aliyun.com/document_detail/153789.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.SshKeyConfiguration',
      defaultMessage: 'SSH 密钥配置',
    }),

    link: 'https://help.aliyun.com/document_detail/153709.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.DeploymentKey', defaultMessage: '部署密钥' }),
    link: 'https://help.aliyun.com/document_detail/153876.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.SecurityRiskControl',
      defaultMessage: '安全风控',
    }),

    link: 'https://help.aliyun.com/document_detail/153808.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.SensitiveInformationDetection',
      defaultMessage: '敏感信息检测',
    }),

    link: 'https://help.aliyun.com/document_detail/153724.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.DependencyPackageVulnerabilityDetection',
      defaultMessage: '依赖包漏洞检测',
    }),

    link: 'https://help.aliyun.com/document_detail/206905.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.ScanJavaCodeSpecifications',
      defaultMessage: 'Java 代码规约扫描',
    }),

    link: 'https://help.aliyun.com/document_detail/153725.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.RecommendedCodePatches',
      defaultMessage: '代码补丁推荐',
    }),

    link: 'https://help.aliyun.com/document_detail/206907.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.GitTeachingQuickStart',
      defaultMessage: 'Git教学-快速上手',
    }),

    link: 'https://help.aliyun.com/document_detail/153802.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.BranchSettings',
      defaultMessage: '分支设置',
    }),

    link: 'https://help.aliyun.com/document_detail/153873.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.CodeownerMachineMade',
      defaultMessage: 'CodeOwner 机制',
    }),

    link: 'https://help.aliyun.com/document_detail/153877.htm',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.EstimatedReviewTime',
      defaultMessage: '评审耗时预估',
    }),

    link: 'https://help.aliyun.com/document_detail/206828.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.RecommendedByReviewer',
      defaultMessage: '评审人推荐',
    }),

    link: 'https://help.aliyun.com/document_detail/206923.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.MergeRequestSettings',
      defaultMessage: '合并请求设置',
    }),

    link: 'https://help.aliyun.com/document_detail/153874.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.WelcomeToCodeup',
      defaultMessage: '欢迎使用 Codeup',
    }),

    link: 'https://help.aliyun.com/document_detail/153784.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.UpdateLogs', defaultMessage: '更新日志' }),
    link: 'https://help.aliyun.com/document_detail/214259.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.Solution', defaultMessage: '解决方案' }),
    link: 'https://help.aliyun.com/document_detail/224578.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.CodeSubmission',
      defaultMessage: '代码提交',
    }),

    link: 'https://help.aliyun.com/document_detail/153708.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.CodeReview', defaultMessage: '代码评审' }),
    link: 'https://help.aliyun.com/document_detail/206897.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.SecurityScan', defaultMessage: '安全扫描' }),
    link: 'https://help.aliyun.com/document_detail/206898.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.KnowledgeBase', defaultMessage: '知识库' }),
    link: 'https://help.aliyun.com/document_detail/153870.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.SecurityCommitment',
      defaultMessage: '安全承诺',
    }),

    link: 'https://help.aliyun.com/document_detail/153786.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.AssociatedFolder',
      defaultMessage: '关联文件夹',
    }),

    link: 'https://help.aliyun.com/document_detail/153793.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.HowToAssociateAPipeline',
      defaultMessage: '如何关联流水线',
    }),

    link: 'https://help.aliyun.com/document_detail/206834.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.StorageCapacity',
      defaultMessage: '存储空间容量',
    }),

    link: 'https://help.aliyun.com/document_detail/153791.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.GetFlowIp', defaultMessage: '获取 Flow IP' }),
    link: 'https://help.aliyun.com/document_detail/202363.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.SynchronizationAdministrator',
      defaultMessage: '同步管理员',
    }),

    link: 'https://help.aliyun.com/document_detail/153717.html',
  },

  {
    id: 'cherry-pick',
    link: 'https://help.aliyun.com/document_detail/206911.html',
  },

  {
    id: 'revert',
    link: 'https://help.aliyun.com/document_detail/206913.html',
  },

  {
    id: 'agit-flow',
    link: 'https://help.aliyun.com/document_detail/159666.html',
  },

  {
    id: 'svn-import',
    link: 'https://help.aliyun.com/document_detail/153706.html',
  },

  {
    id: 'insight-mr',
    link: 'https://help.aliyun.com/document_detail/224584.html',
  },

  {
    id: 'insight',
    link: 'https://help.aliyun.com/document_detail/206896.html',
  },

  {
    id: 'lfs',
    link: 'https://help.aliyun.com/document_detail/206887.html',
  },

  {
    id: 'lfs-delete',
    link: 'https://help.aliyun.com/document_detail/206842.html',
  },

  {
    id: 'insight-delay',
    link: 'https://help.aliyun.com/document_detail/206844.html',
  },

  {
    id: 'trash',
    link: 'https://help.aliyun.com/document_detail/206924.html',
  },

  {
    id: 'lsif',
    link: 'https://help.aliyun.com/document_detail/217551.html',
  },

  {
    id: 'commit-check-org',
    link: 'https://help.aliyun.com/document_detail/153714.html',
  },

  {
    id: 'commit-check-repo',
    link: 'https://help.aliyun.com/document_detail/217550.html',
  },

  {
    id: 'gpg',
    link: 'https://help.aliyun.com/document_detail/206892.html',
  },

  {
    id: 'create_repo_with_service',
    link: 'https://help.aliyun.com/document_detail/206841.html',
  },

  {
    id: 'log-limit',
    link: 'https://drcloud.aliyun.com/home',
  },

  {
    id: 'org-sensitive-info',
    link: 'https://help.aliyun.com/document_detail/206899.html',
  },

  {
    id: 'member-name',
    link: 'https://help.aliyun.com/document_detail/206848.html',
  },

  {
    id: 'clone-download-control',
    link: 'https://selfservice.console.aliyun.com/ticket/category/rdc/today',
  },

  {
    id: 'submit-work-order',
    link: 'https://selfservice.console.aliyun.com/ticket/category/rdc/today',
  },

  {
    id: 'risk-score-rule',
    link: 'https://help.aliyun.com/document_detail/206886.html',
  },

  {
    id: 'pinpoint',
    link: 'https://help.aliyun.com/document_detail/217553.html',
  },

  {
    id: 'backup',
    link: 'https://help.aliyun.com/document_detail/217005.html',
  },

  // 云上不上prehook。
  {
    id: 'prehook-org',
    link: 'https://thoughts.alibaba-inc.com/workspaces/5cb549dabe825b5081dfdf1b/docs/5ff570405d9d5052957c08fb',
  },

  {
    id: 'crypto',
    link: 'https://help.aliyun.com/document_detail/217008.html',
  },

  {
    id: 'invalid session',
    link: 'https://help.aliyun.com/document_detail/181559.html',
  },

  {
    id: 'oss',
    link: 'https://cn.aliyun.com/price/detail/oss',
  },

  {
    id: 'backup-rules',
    link: 'https://help.aliyun.com/document_detail/217006.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.HowCanCodeContributionsBe',
      defaultMessage: '代码贡献如何才能被报表统计',
    }),

    link: 'https://help.aliyun.com/document_detail/217003.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.WhatIsTheWhitelistOf',
      defaultMessage: '什么是评审文件白名单',
    }),

    link: 'https://help.aliyun.com/document_detail/217004.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.LargeFileStorageService',
      defaultMessage: '大文件存储服务',
    }),

    link: 'https://help.aliyun.com/document_detail/206888.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.CodeLibraryCapacityManagement',
      defaultMessage: '代码库容量管理说明',
    }),

    link: 'https://help.aliyun.com/document_detail/153791.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.AutomaticRepair',
      defaultMessage: '自动修复功能',
    }),

    link: 'https://help.aliyun.com/document_detail/260885.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.HowToUsePipelineDetection',
      defaultMessage: '如何使用流水线检测',
    }),

    link: 'https://help.aliyun.com/document_detail/260886.html',
  },

  {
    id: intl.get({ id: 'code-assets.utils.docs.docs.ImportTool', defaultMessage: '导入工具' }),
    link: 'https://help.aliyun.com/document_detail/271761.html',
  },

  {
    id: intl.get({
      id: 'code-assets.utils.docs.docs.WarehouseSynchronization',
      defaultMessage: '仓库同步',
    }),
    link: 'https://help.aliyun.com/document_detail/289096.html',
  },

  {
    id: 'sls-serve-help',
    link: 'https://help.aliyun.com/document_detail/217007.html',
  },

  {
    id: 'sls-serve-cost',
    link: 'https://help.aliyun.com/document_detail/48220.html',
  },
  {
    id: 'mirror_sync_more',
    link: 'https://help.aliyun.com/document_detail/289096.html',
  },
  {
    id: 'water_mark_link',
    link: 'https://help.aliyun.com/document_detail/310933.html',
  },
  {
    id: 'water_mark_token',
    link: 'https://help.aliyun.com/document_detail/289096.html',
  },
  {
    id: 'water_mark_access_token',
    link: 'https://help.aliyun.com/document_detail/289096.html',
  },
  {
    id: 'configuration_file_writing',
    link: 'https://help.aliyun.com/document_detail/271761.html',
  },
  {
    id: 'import_locally_tool_download',
    link: 'https://help.aliyun.com/document_detail/271761.html#title-ds1-cet-f5d',
  },
  {
    id: 'import_locally_token',
    link: 'https://help.aliyun.com/document_detail/153789.html',
  },
  {
    id: 'import_locally_personal_token',
    link: 'https://help.aliyun.com/document_detail/271761.html#title-ds1-cet-f5d',
  },
  {
    id: 'import_locally_file_writing',
    link: 'https://help.aliyun.com/document_detail/271761.html#title-ib7-q8d-vby',
  },
  {
    id: 'gitlab_network_error',
    link: 'https://help.aliyun.com/document_detail/258242.html',
  },
  {
    id: 'mr_intro',
    link: 'https://help.aliyun.com/document_detail/153872.html',
  },
];

module.exports = {
  docs,
};
